﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace _537_App_Store.Form
{
    /// <summary>
    /// Detailswindow.xaml 的交互逻辑
    /// </summary>
    public partial class Application_Detailswindow : Window
    {
        public Application_Detailswindow(_537AppStore_API.Model.Application application)
        {
            InitializeComponent();
            ID.Text += application.id.ToString();
            Icon.Source = new BitmapImage(new Uri(application.Icon));
            Description.Text += application.Description;
            Name.Text += application.Name;
            Version.Text += application.Version;
            Author.Text += application.Author;
            MD5.Text += application.MD5;
            DownloadURL.Text += application.DownloadUrl;
            InstallCommand.Text += application.InstallCommand;
            InstallerType.Text += application.InstallerType.ToString();
            Website.Text += application.Website;
            RunFile.Text += application.RunFile;
            Category.Text += application.Category;
            LastUpdate.Text += application.LastUpdated.ToString("yyyy年MM月dd日 HH:mm:ss");
            License.Text += application.License;
        }
    }
}
